package com.tinkerapps.protocols;

import com.tinkerapps.protocols.ssdp.DeviceNotificationSink;
import com.tinkerapps.protocols.ssdp.SSDPControlPoint;

/**
 * Simple Service Discovery Protocol (SSDP) APIs
 */
public class SSDP {

	/**
	 * Constants
	 */
	
	public final static String DISCOVER_ALL_DEVICES = "ssdp:all";
	public final static String DISCOVER_ROOT_DEVICES = "upnp:rootdevice";
	public final static String DISCOVER_CONTENT_DIRS_V1 = "urn:schemas-upnp-org:service:ContentDirectory:1";
	public final static String DISCOVER_MEDIA_SERVERS_V1 = "urn:schemas-upnp-org:device:MediaServer:1";
	
	/**
	 * Get new instance of control point
	 * @param sink Notification sink to use for control point
	 * @return Control point instance associated with the given sink
	 */
	public static SSDPControlPoint getControlPoint(DeviceNotificationSink sink) {
		return new SSDPControlPoint(sink);
	}
}
